cmake_minimum_required(VERSION 3.13)

project(t2)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
if(CMAKE_VERSION VERSION_LESS "3.7.0")
    set(CMAKE_INCLUDE_CURRENT_DIR ON)
endif()

set(CMAKE_PREFIX_PATH "/home/liyuhui/Applications/Qt5.7.0/5.7/gcc_64")

find_package(Qt5 COMPONENTS Gui REQUIRED)
add_executable(t2 main.cpp)
target_link_libraries(t2 Qt5::Gui)
